/*
 * @Author: yanjikun
 * @Date: 2022-04-19 16:34:03
 * @LastEditors: yanjikun
 * @LastEditTime: 2022-05-09 13:58:18
 * @Description: file content
 */
import '@vuemap/vue-amap/dist/style.css'
import { initAMapApiLoader } from '@vuemap/vue-amap'
import { AMAP_KEY } from '@/settings/keySetting'
import '@amap/amap-jsapi-types'
// 引入静态资源
export const setupVueAmap = () => {
  initAMapApiLoader({
    key: AMAP_KEY,
    plugins: [
      'AMap.Geolocation',
      'AMap.Geocoder',
      'AMap.Autocomplete',
      'AMap.PlaceSearch',
      'AMap.Scale',
      'AMap.OverView',
    ],
  })
}
